﻿
using System;
using System.Collections.Generic;

namespace Nx.Clients.Http
{
    public interface ISerializer : IDisposable
    {
        string MediaType { get; }
        string Serialize<T>(T dto);
        T Deserialize<T>(string serialized);
        IEnumerable<T> DeserializeCollection<T>(string serialized);
    }
}
